import request from "@/utils/request";

// 查看小区列表集合
export function getEstateList(params) {
  return request({
    url: "/enterprise/house/estate/estateList",
    method: "get",
    params: params
  });
}

// 新增维修项目信息
export function addMaintenanceItem(data) {
  return request({
    url: "/enterprise/maintenance/item",
    method: "post",
    data: data
  });
}

// 修改维修项目信息
export function updateMaintenanceItem(data) {
  return request({
    url: "/enterprise/maintenance/item",
    method: "put",
    data: data
  });
}

// 查询维修项目信息列表
export function listMaintenanceItem(params) {
  return request({
    url: "/enterprise/maintenance/item/list",
    method: "get",
    params: params
  });
}

// 查询该企业全部维修项目信息
export function getMaintenanceItemInfo(params) {
  return request({
    url: "/enterprise/maintenance/item/Info",
    method: "get",
    params: params
  });
}

// 删除维修项目信息
export function deleteMaintenanceItem(id) {
  return request({
    url: "/enterprise/maintenance/item/" + id,
    method: "delete"
  });
}





